/**      
 * @file		recursivePrint.cpp
 * @description		This example demonstrates the use of another
 *			recursive function called "printMsg()"
 *					
 * @course		CSCI 123 Section 00000
 * @assignment 
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

/**
 * This function prints a message a number of times.
 * @param message the message to be printed
 * @param times the number of messages to print
 * @pre aMessage is a null terminating cstring and aTimes is >= 1
 * @post the message has been output to standard output aTimes number of times
 */
void printMsg(char *aMessage, int aTimes);

/**
 * @return zero if the application executes successfully
 */
int main() {
	char myMessage[] = "I'm here ";
	printMsg(myMessage, 5);
	return 0;
}

void printMsg(char *aMessage, int aTimes) {
	if(aTimes >= 1) {
		cout << aMessage << aTimes << endl;
		printMsg(aMessage, aTimes-1);
	}
}
